package coint.btc.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * 角色权限关联
 * @author wyx
 *
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "juese_permission", catalog = "btc")
public class JuesePermission implements java.io.Serializable {

	/**
	* 
	*/
	private static final long serialVersionUID = 8762760217360068648L;
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;
	
	@Column(name = "juese_id", length = 11)
	@ApiModelProperty(value = "角色id  ")
	@NotNull(message = "角色id不能为空 ")
	private Integer jueseId;
	
	@Column(name = "quanxian_id", length = 11)
	@ApiModelProperty(value = "权限id  ")
	@NotNull(message = "权限id不能为空 ")
	private Integer quanxianId;

}